import { IOrder } from '@/types/order';
import { LOADING_STATUS } from '@/enum/loadingStatus';


interface IMasterOrderDetail extends IOrder {
	pro : string;
	city : string;
	area : string;
	address : string;
	customer_phone : string;
	customer_name : string;
}

interface ISubOrderDetail {
	id : number;
	master_no : string;
	model_sn : string;
	uid : number;
	created_at : string;
	updated_at : string | null;
	machine_id : number;
	suborder_no : string;
	product_name : string;
	product_images : string;
}

interface IGetOrderDetailResult {
	master_order : IMasterOrderDetail,
	suborder : ISuborder
}

interface ISuborder {
	data : ISubOrderDetail[];
	total : number;
}

interface ISubOrderListPageInfo {
	pageNum : number;
	pageSize : number;
	loadingStatus : LOADING_STATUS;
}

export {
	IMasterOrderDetail,
	ISubOrderDetail,
	IGetOrderDetailResult, 
	ISubOrderListPageInfo
}